package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.ProductKindBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface ProductKindService extends BaseService<ProductKindBean> {

	ProductKindBean getProductKindBeanById(String id) throws Exception;
	
	void removeProductKindBeanById(String id) throws Exception;
	
	void removeProductKindBeanByIds(String ids) throws Exception;
	
	ProductKindBean saveProductKindBean(ProductKindBean crm) throws Exception;
	
	ProductKindBean updateProductKindBean(ProductKindBean crm) throws Exception;
	
	Page<ProductKindBean>  findProductKindBeanByCond(ProductKindBean bean,
			Page<ProductKindBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveProductKindBeanExt(String sql) throws Exception;

	String findProductKindBeanExtCreate(String tableName) throws Exception;

	String findProductKindBeanExtEdit(String tableName, String id)
			throws Exception;

	String findProductKindBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasProductKindBeanExtData(String tableName, String id)
			throws Exception;
}